const {
  DataTypes
} = require('sequelize');
module.exports = sequelize => {
  const attributes = {
    paster_id: {
      type: DataTypes.INTEGER,
      allowNull: false,
      defaultValue: null,
      primaryKey: true,
      autoIncrement: true,
      comment: "贴纸ID",
      field: "paster_id"
    },
    paster_integral: {
      type: DataTypes.INTEGER,
      allowNull: true,
      defaultValue: null,
      primaryKey: false,
      autoIncrement: false,
      comment: "贴纸所需积分",
      field: "paster_integral"
    },
    paster_type: {
      type: DataTypes.INTEGER,
      allowNull: true,
      defaultValue: null,
      primaryKey: false,
      autoIncrement: false,
      comment: "0为叶子，1为文字，2为茶杯",
      field: "paster_type"
    },
    paster_src: {
      type: DataTypes.STRING(255),
      allowNull: true,
      defaultValue: null,
      primaryKey: false,
      autoIncrement: false,
      comment: "贴纸图片src",
      field: "paster_src"
    }
  };
  const options = {
    tableName: "paster",
    comment: "",
    indexes: []
  };
  const PasterModel = sequelize.define("paster_model", attributes, options);
  return PasterModel;
};